#!/usr/bin/python
# -*- coding: UTF-8 -*-
__author__ = 'gtlions'
import cmd
import time


class HelloWorld(cmd.Cmd):
    prompt = "HelloWorld>:"
    intro = '''-----Welcome Gtlions's PyGT!-----
    Usage HelloWorld
    Input help  show help
    Input time show current time
    Input exit exit it'''
    def do_help(self):
        pass
    def do_time(self,line):
        print time.strftime('%Y-%m-%d', time.localtime(time.time()))
    def do_greet(self, line):
        print 'hello'

    def do_EOF(self, line):
        return True
if __name__ == '__main__':
    HelloWorld().cmdloop()